package com.mifengs.mall;

import android.os.Environment;

import java.io.File;

/**
 * Created by Administrator on 2017/10/24.
 */

public class Constant {

    public static final int OK_CODE = 1;

    public static final String OK_STATUS = "1";

    public static final String SUCCESS_CODE = "0000";

    public static final String DEFAULT_CUSTOMER_APPKEY = "1185171106115119#mfscfc";
    public static String DEFAULT_CUSTOMER_ACCOUNT = "mifengs";
    public static final String DEFAULT_ACCOUNT_PWD = "mfscfc8888";
    public static final String DEFAULT_NICK_NAME = "";
    public static final String DEFAULT_TENANT_ID = "49475";
    public static final String DEFAULT_PROJECT_ID = "2304624";
    public static final String INTENT_CODE_IMG_SELECTED_KEY = "img_selected";
    public static final int INTENT_CODE_IMG_SELECTED_DEFAULT = 0;

    public static final int MESSAGE_TO_DEFAULT = 0;
    public static final int MESSAGE_TO_PRE_SALES = 1;
    public static final int MESSAGE_TO_AFTER_SALES = 2;
    public static final String MESSAGE_TO_INTENT_EXTRA = "message_to";
    public static final String WEIXIN_APPID = "wx960f4cfc839d5921";
    public static final String WEIXIN_SECRET = "833992b1a0f085cad677149a4e0fa9d9";
    public static final int PAGE_SIZE = 12;

    public static final int HANDWRITE_RESULT = 8001;


    // public static final String BaseUrl = "https://www.mifengs.com";
//      public static final String BaseUrl = " http://101.37.30.153";
    //   public static final String BaseUrl = "http://192.168.0.254:8080";
//    public static final String BaseUrl = " http://192.168.0.100:8080";
    public static final String BaseUrl = com.mifengs.commonbase.Constant.BaseUrl;
    public static final String BaseUrl_H5 = com.mifengs.commonbase.Constant.BaseUrl_H5;
    public static final String Prefix = com.mifengs.commonbase.Constant.Prefix;
    public static final String H5_Prefix = com.mifengs.commonbase.Constant.H5_Prefix;
    public static final String Interface_Prefix = com.mifengs.commonbase.Constant.Interface_Prefix;


    public static final boolean MQ_CONFIG = BuildConfig.MQ_CONFIG;

    public static final boolean MQ_CONFIG_VALUE = MQ_CONFIG;
    public static final int REGISTER_SUCCESS = 1001;
    public static final String HX_CUSTOMER_NAME = "蜜蜂商城蜂巢客服";


    public static final String STORE_APPLY = "STORE_APPLY"; //申请门店

    //h5 url


    public static final String H5_CLASSIFT = BaseUrl_H5 + "/category";
    // public static final String H5_CLASSIFT = "http://192.168.0.254:8080";

    public static final String H5_CART = BaseUrl_H5 + "/shopcart";

    public static final String H5_MY = BaseUrl_H5 + "/p/userhome";

    public static final String H5_sign = BaseUrl_H5 + "/p/signIn/index";

    public static final String H5_Nearby = H5_Prefix + "/storeList";

    //public static final String H5_MY = "http://192.168.0.108:8080/examples/aa.html";

    public static final String QIANG_GOU = BaseUrl_H5 + "/m_search/list?curPageNO=0&orders=recDate,desc&qianggouStatus=1";

    //开店须知
    public static final String H5_STORE_APPLY_NOTICE = BaseUrl_H5 + "/storeApplyNotice";

    //appPath
    public static final String AppPath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "mfsc";

    //public static final String AppPath = MallApplication.getInstance().getCacheDir().getAbsolutePath() + File.separator + "mfsc_app" ;


    /**
     * url
     */
//    public static final String LOGIN_URL = BaseUrl + Prefix + "/login";
    public static final String LOGIN_URL = "login";

    public static final String REGISTER_URL = BaseUrl + Prefix + "/register";

    public static final String ORDER_URL = BaseUrl + Prefix + "/p/orderPay";

    public static final String DETAIL_URL = BaseUrl + Prefix + "/views";

    /**
     * app 更新接口
     */
    public static final String APP_UPDATE = "/legendshop_app/version";

    /**
     * 首页数据
     */
    //public static final String HOME_DATA = "/legendshop_app/mIndex";
    public static final String HOME_DATA = Prefix + "/mIndex";

    /**
     * 发送验证码
     */
//    public static final String SEND_SMSCODE = Prefix + "/sendSMSCodeRegister";
    public static final String SEND_SMSCODE = Interface_Prefix + "/sendSMSCodeRegister.do";

    /**
     * 验证手机号是否已经存在
     */
//    public static final String ISPHONE = Prefix + "/isPhoneExist";

    /**
     * 图形验证码
     */
//    public static final String PHONE_CODE = BaseUrl_H5 + "/validCoder.random";
    public static final String PHONE_CODE = BaseUrl +Interface_Prefix + "/getImgCode.do";

    /**
     * 注册
     */
//    public static final String USERREG = Prefix + "/userReg";
    public static final String USERREG = Interface_Prefix + "/userRegByPhone.do";
    /**
     * 登录
     */

//    public static final String LOGIN=  "zuul/service-login/login/login";
//    public static final String LOGIN=  "http://www.zhuligo.com/mifeng/service-login/login/login";

    //获取图片服务器地址接口
    public static final String GET_PHOTO_PATH = Prefix + "/getPhotoPath";

    /**
     * 支付接口
     */
    public static final String ORDERPAY = Prefix + "/p/app/payment/payto";

    /**
     * 消息中心
     */
    public static final String FINDSYSTEMMSG = Prefix + "/app/pushmsg/findSystemMsg";

    /**
     * 红包列表
     */
    public static final String RED_PACKET = Prefix + "/p/redEnvelope/list";


    /**
     * 红包详情
     */
    public static final String RED_DETAIL = Prefix + "/p/redEnvelope/getRedEnvelope";

    /**
     * 接收红包
     */
    public static final String RED_REV = Prefix + "/p/redEnvelope/receiveRedEnvelope";

    /**
     * 上线提醒
     */
    public static final String APP_LAUNCH = Prefix + "/appLaunch";
    /**
     * 我的消息
     */
    public static final String MY_MSG = Prefix + "/app/pushmsg/findUserMessage";


    /**
     * 图片上传
     */
    public static final String UPLOADIMG = Prefix + "/saveAttachment";

    /**
     * 经营范围
     */
    public static final String LOAD_CATEGORIES = Prefix + "/common/loadCategories/0";
    /**
     * 门店资质提交接口
     */
    public static final String SAVE_STORE_CERTIFICATE = Prefix + "/saveStoreCertificate";
    /**
     * 门店信息查询
     */
    public static final String GET_STORE_CERTIFICATE = Prefix + "/getStoreCertificate";

    /**
     * 获取门店申请信息
     */
    public static final String STORE_APPLY_PROGRESS = Prefix + "/getStoreApplyInfo";

    /**
     * 企业用户提交门店合同照
     */
    public static final String SAVE_AGREEMENT_PIC = Prefix + "/saveAgreementPic";

    /**
     * 企业用户预览合同
     */
    public static final String GET_AGREEMENT_URL = Prefix + "/getStoreAgreementUrl";
    /**
     * 省查询
     */
    public static final String GET_PROVINCES = Prefix + "/common/loadProvinces";
    /**
     * 市查询
     */
    public static final String GET_CITIES = Prefix + "/common/loadCities";
    /**
     * 区查询
     */
    public static final String GET_AREAS = Prefix + "/common/loadAreas";
    /**
     * 街道查询
     */
    public static final String GET_STREETS = Prefix + "/common/loadStreets";


    /**
     * 获取新首页数据
     */
    public static final String GETHOME_DATA = Interface_Prefix+ "/mIndex.do";

    /**
     * 获取楼层
     */
    public static final String GET_FLOORS =  Interface_Prefix + "/queryFloors.do";


    /**
     * 获取猜你喜欢
     */
    public static final String GET_LIKES_GOODS =  Interface_Prefix + "/search/recommendProd.do";


    /**
     * 登录
     */
    public static final String APP_LOGIN = Interface_Prefix +  "/login/login.do";


    /**
     * 微信登录
     */
    public static final String WEIXIN_LOGIN = Interface_Prefix + "/weixin/login.do";

    /**
     * 手机号是否存在
     */
    public static final String PHONE_IS_EXIST = Interface_Prefix +  "/phoneIsExist.do";

    /**
     * 微信注册发送验证码
     */
    public static final String SEND_SMSCODE_WEIXIN_REGISTER = Interface_Prefix + "/sendNewSMSCodeRegister_weixin.do";


    /**
     * 微信登录注册
     */
    public static final String WEIXIN_REGISTER = Interface_Prefix + "/weixinRegByPhone.do";

    /**
     * 找回密码
     */
    public static final String FIND_BACK_PW = Interface_Prefix + "/getBackPssword.do";
    /**
     * 发送验证码找回密码
     */
    public static final String SEND_CODE_FIND_PW =  Interface_Prefix + "/sendSMSCodeUpdatePwd.do";

    /**
     * 获取通讯录
     */
    public static final String SAVECONTACTS = Interface_Prefix + "/p/saveContactsInfo.do";

    /**
     * 发送短信验证码做修改密码（新版本）
     */
    public static final String NEW_SEND_SMS_CODE = Interface_Prefix + "/sendNewSMSCodeUpdatePwd.do";

    /**
     * 退出登录
     */
    public static final String LOGOUT = Interface_Prefix + "/p/userLogout.do";


    /**
     * 获取闪屏信息
     */
    public static final String SPLASH_INFO = Interface_Prefix + "/splashScreen.do";

    /**
     * APP升级版本信息
     */
    public static final String UPGRADEINFO = "/systemInfo/upgradeInfo";




}
